package com.zjp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 功能测试访问页面
 */
@Controller
public class GetPagesController {

    @GetMapping("{url}.html")  //访问页面跳转到指定页面
    public String getPage(@PathVariable("url") String url) {
        return url;
    }
}